<?php
abstract class ModelIdName extends ModelArray
{
    protected function AddRow($id, $name = false)
    {
        if ($name === false)
            $name = $id;
        parent::AddRow($id, $name);
    }

    protected function LoadFields()
    {
        $this->AddField('id', 'varchar', false, true);
        $this->AddField('name');
    }
}
?>
